<%@ page language="java" import="java.util.*,com.edu.ujn.myh.domain.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title></title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css" href="css/styles.css">
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/articleDetails.js"></script>
  </head>
  <%ArticleInfo article = (ArticleInfo)request.getAttribute("articleInfo"); %>
  <body>
  
       <table>
       <tr>
       		<th>名称</th>
       		<th>内容</th>
       </tr>
       <tr>
       		<td>中文名称</td>
       		<td>${articleInfo.chinaName}</td>
       </tr>
        <tr>
       		<td>英文名称</td>
       		<td>${articleInfo.englishName}</td>
       </tr>
       <tr>
       		<td>申请人</td>
       		<td>${articleInfo.userInfo.userName}</td>
       </tr>
        <tr>
       		<td>所属分类</td>
       		<td>${articleInfo.categoryInfo.name}</td>
       </tr>
        <tr>
       		<td>中文简介</td>
       		<td><textarea rows="10" cols="40"  disabled="disabled">${articleInfo.chinaBrief}</textarea></td>
       </tr>
        <tr>
       		<td>英文简介</td>
       		<td><textarea rows="10" cols="40" disabled="disabled">${articleInfo.englishBrief}</textarea></td>
       </tr>
       </table>
     <div id="score" style="display:none">
	<%List list = article.getOpinonInfo();
		if(list!=null&&list.size()>0){
		for(int i=0;i<list.size();i++){
			OpinionInfo opinion = (OpinionInfo)list.get(i);
			if(opinion!=null){
			%>
	<table>
       <tr>
       		<th>条目</th>
       		<th>分数</th>
       		<th>意见</th>
       </tr>
       <tr>
       		<td>思想创新性</td>
       		<td><input type="text" id="score_1" name="score_1" style="width:50px" disabled="disabled" value="<%=opinion.getScore1() %>"></td>
       		<td><textarea rows="3" cols="25" id="opinions_1" name="opinions_1" disabled="disabled"><%=opinion.getOpinion1() %></textarea></td>
       </tr>
       <tr>
       		<td>构思完整性</td>
       		<td><input type="text" id="score_2" name="score_2" style="width:50px" disabled="disabled" value="<%=opinion.getScore2() %>"></td>
       		<td><textarea rows="3" cols="25" id="opinions_2" name="opinions_2" disabled="disabled"><%=opinion.getOpinion2() %></textarea></td>
       </tr>
       <tr>
       		<td>内容丰富性</td>
       		<td><input type="text" id="score_3" name="score_3" style="width:50px" disabled="disabled" value="<%=opinion.getScore3() %>"></td>
       		<td><textarea rows="3" cols="25" id="opinions_3" name="opinions_3" disabled="disabled"><%=opinion.getOpinion3() %></textarea></td>
       </tr>
       <tr>
       		<td>结构严谨性</td>
       		<td><input type="text" id="score_4" name="score_4" style="width:50px" disabled="disabled" value="<%=opinion.getScore4() %>"></td>
       		<td><textarea rows="3" cols="25" id="opinions_4" name="opinions_4" disabled="disabled"><%=opinion.getOpinion4() %></textarea></td>
       </tr>
       <tr>
       		<td>语言流畅性</td>
       		<td><input type="text" id="score_5" name="score_5" style="width:50px" disabled="disabled" value="<%=opinion.getScore5() %>"></td>
       		<td><textarea rows="3" cols="25" id="opinions_5" name="opinions_5" disabled="disabled"><%=opinion.getOpinion5() %></textarea></td>
       </tr>
       </table>
			<%
			}
		}
	}
	 %>
       </div>
       <form>
       		
       		<!-- <input type="button" value="分数" style="height:20px;margin-left:20px;margin-top:10px" onclick="showScore()"> -->
       		<a href="javascript:void(0);" style="height:20px;margin-left:20px;" onclick="showScore()">查看分数</a>
       		<input type="button" value="确定" style="height:20px;margin-left:50px;margin-top:10px" onclick="ok()">
       </form>
  </body>
</html>
